import { defaultsDeep } from 'lodash-es'
import type { RecursiveRequired, Settings } from '#/global'
import settingsDefault from '@/settings.default'

const globalSettings: Settings.all = {
  app: {
    lightTheme: 'winter',
  },
  menu: {
    mode: 'head',
    isRounded: true,
    enableSubMenuCollapseButton: true,
  },
  topbar: {
    mode: 'fixed',
  },
  tabbar: {
    enable: true,
    style: 'fashion',
  },

}

export default defaultsDeep(globalSettings, settingsDefault) as RecursiveRequired<Settings.all>
